projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f339657
)
Revert "Remove XEmacs code from tetris.el"
author
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 15 Oct 2019 09:06:40 +0000
(11:06 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 15 Oct 2019 09:07:04 +0000
(11:07 +0200)
This reverts commit
68b91333d5a070c84afeadc273fd5c44df70f0a6
.
This should be ported to Emacs instead.
lisp/play/tetris.el
patch
|
blob
|
history
diff --git
a/lisp/play/tetris.el
b/lisp/play/tetris.el
index a8fa7b7586539f18f3ba728cd709085c5221006b..a797a26d59761affead46d6ccb0d67ac978043a9 100644
(file)
--- a/
lisp/play/tetris.el
+++ b/
lisp/play/tetris.el
@@
-599,6
+599,17
@@
Drops the shape one square, testing for collision."
(use-local-map tetris-null-map)
+ (unless (featurep 'emacs)
+ (setq mode-popup-menu
+ '("Tetris Commands"
+ ["Start new game" tetris-start-game]
+ ["End game" tetris-end-game
+ (tetris-active-p)]
+ ["Pause" tetris-pause-game
+ (and (tetris-active-p) (not tetris-paused))]
+ ["Resume" tetris-pause-game
+ (and (tetris-active-p) tetris-paused)])))
+
(setq show-trailing-whitespace nil)
(setq gamegrid-use-glyphs tetris-use-glyphs)